package com.yjh.study.data.structure.list;

public abstract class AbstractList<T> implements List<T> {
    protected int size = 0;

    @Override
    public boolean isEmpty() {
        return size <= 0;
    }

    @Override
    public int size() {
        return size;
    }

    protected void sizeIncrease() {
        size += 1;
    }

    protected void sizeIncrease(int step) {
        size += step;
    }


}
